import {
  REC_GEOHASH,
  REC_ADDRESS,
  REC_CATEGORIES,
  REC_SHOPS,
} from './mutations_type'

export const mutations = {
  [REC_GEOHASH](state, {geohash}) {
    state.geohash = geohash
  },

  [REC_ADDRESS](state, {address}) {
    state.address = address
  },

  [REC_CATEGORIES](state, {categories}) {
    state.categories = categories
  },

  [REC_SHOPS](state, {shops}) {
    state.shops = shops
  }
}